package com.codeoss.module.test.pagebean;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.codeoss.framework.view.pagebean.mobile.MFormViewPageBean;
import com.codeoss.module.test.model.TestTest1;
import com.codeoss.module.test.service.ITestTest1Service;

@Service
public class MobileTestTest1FormViewPageBean extends MFormViewPageBean{
	@Autowired
	private ITestTest1Service testTest1Service;
	
	@Transactional
	public void testAction(Map<String,Object> paraMap){
		Long id=(Long)getCurrentKeyValue();
		String testText=(String)paraMap.get("test_text");
		TestTest1 testTest1=testTest1Service.getById(id);
		testTest1.setTestText(testText);
		testTest1Service.update(testTest1);
		dataRefresh();
	}
}
